<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>LZXリファレンス lzidle</title>
  <othercredit role="translator">
    <firstname>Atuo</firstname>
    <surname>Seki</surname>
        <contrib>2006/05/17　翻訳初版</contrib>
 </othercredit>
</head>
<body>

<!-- ===================================================================== -->
<!-- = XML information goes here                                         = -->
<!-- ===================================================================== -->
<lzelement title="LzIdle">
    <lztier>Service</lztier>
    <lzcategory>Event</lzcategory>
    <lzshortdesc>
              アイドルサービス。
    </lzshortdesc>
    <lzapi>api-lzidle.xml</lzapi>
</lzelement>

<p>OpenLaszloは不特定の頻度でいくつかのアイドルイベントを起こします。
ここにどのように<event>onidle</event>イベントを受け取るか簡単な例を示します：</p>

<example>
&lt;canvas height="140" debug="true"&gt;
  &lt;attribute name="counter" value="0"/&gt;
  &lt;method name="onidle" event="onidle" reference="LzIdle"&gt;
    while (counter &amp;lt; 4) {
      counter++;
      Debug.write("idling  " + counter);
    }
  &lt;/method&gt;
&lt;/canvas&gt;

</example>
</body>
</html>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
* Use is subject to license terms.                                            *
* X_LZ_COPYRIGHT_END ****************************************************** -->
